package com.zdkj.subway.rca.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.rca.dto.out.SwCkClearEmergencyReturnticketDTO;
import com.zdkj.subway.rca.entity.SwCkClearEmergencyReturnticket;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 应急纸票与退款清分表
 * @Author lu
 * @Date 2021-08-17
 */
public interface SwCkClearEmergencyReturnticketService extends IService<SwCkClearEmergencyReturnticket> {
	
	 /**
     * 应急纸票和退换票正常清分操作（按月）
     * @param startDate  当月的开始日期
     * @param endDate    当月的结束日期
     * @return
     */
    Boolean generateSwCkClearEmergencyReturnTicket(String startDate, String endDate);	
    /**
     * 导出数据
     * @param startDate  当月的开始日期
     * @param endDate    当月的结束日期
     * @param operators  运营商ID
     * @param lineCode   线路编号
     * @param response
     */
    void export(String startDate, String endDate, String operators, String lineCode, String baseCode, HttpServletResponse response);
    /**
     * 重新清分
     * @param ids  选择的IDS
     * @return
     */
    Boolean reGenerateSwCkClearEmergencyReturnTicket(List<Long> ids);
    /**
     * 应急纸票退换票查询
     * @param startDate
     * @param endDate
     * @param lineCode
     * @param operators
     * @return
     */
    List<SwCkClearEmergencyReturnticketDTO> listSwCkClearEmergencyReturnticket(String startDate, String endDate, String lineCode, String operators);
}
